import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import fastclick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad,{//js引用加载img需要require
    loading:require('common/image/default.png')
})

import 'common/stylus/index.styl'
// import 'common/js/hack'

fastclick.attach(document.body)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,//将状态从根组件注入到每一个子组件中 子组件能通过this.$store访问到
  render: h => h(App)
})
